import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/init/main.scss';
import '@/init/init.scss';
import '@/init/theme.scss'
import App from '@/App.vue'
import Api from '@/api/index'
import Utils from '@/utils/utils'
import Common from '@/utils/common'
import router from '@/router'
import store from '@/store'
import { formatDate, formatPrice, format } from '@/utils/format'
import VueResource from 'vue-resource';
import test from '@/test/default'
import '@/registerServiceWorker'

Vue.config.productionTip = false;

Vue.filter('formatDate', formatDate);
Vue.filter('formatPrice', formatPrice);
Vue.filter('format', format);
Vue.prototype.$api = Api;
Vue.prototype.$utils = Utils;
Vue.prototype.$common = Common;


Vue.prototype.$test = test;

Vue.use(ElementUI, {size: 'medium',zIndex: 3000});
Vue.use(VueResource)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
